<template>
  <div class="recommend">
    <div class="title">热销推荐</div>
    <ul class="items">
      <li class="item" v-for="one in recommendList" :key="one.id">
        <div class="item-img">
          <img
            :src="one.imgUrl"
            alt
          />
        </div>
        <div class="item-text">
          <p class="item-title">{{one.title}}</p>
          <p class="item-info">{{one.desc}}</p>
          <button class="item-button">查看详情</button>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "recommend",
  data() {
    return {
      recommendList: [
        {
          id: "0001",
          imgUrl:
            "http://img1.qunarzz.com/sight/p0/1707/a3/a3924161475dee37a3.img.jpg_200x200_5ba00364.jpg",
          title: "青岛海昌极地海洋公园",
          desc: "在家门口感受南北极的无限魅力"
        },
        {
          id: "0002",
          imgUrl:
            "http://img1.qunarzz.com/sight/p0/1707/a3/a3924161475dee37a3.img.jpg_200x200_5ba00364.jpg",
          title: "青岛海昌极地海洋公园",
          desc: "在家门口感受南北极的无限魅力"
        },
        {
          id: "0003",
          imgUrl:
            "http://img1.qunarzz.com/sight/p0/1707/a3/a3924161475dee37a3.img.jpg_200x200_5ba00364.jpg",
          title: "青岛海昌极地海洋公园",
          desc: "在家门口感受南北极的无限魅力"
        },
      ]
    };
  }
};
</script>
<style lang="stylus" scoped>
@import '~@/assets/common/commonstyl/mixins.styl';

.recommend {
  line-height: 80px;

  .title {
    background-color: #eee;
    text-indent: 20px;
  }

  .items {
    .item {
      display: flex;
      height: 190px;
      border-bottom: 1px solid #eee;

      .item-img {
        width: 170px;
        height: 170px;
        padding: 10px;

        >img {
          display: block;
          width: 100%;
        }
      }

      .item-text {
        flex: 1;
        padding: 10px;

        .item-title {
          line-height: 54px;
          font-size: 30px;
        }

        .item-info {
          line-height: 54px;
          font-size: 22px;
          color: #ccc;
        }

        .item-button {
          display: inline-block;
          background: #ff9300;
          margin-top: 16px;
          border-radius: 6px;
          padding: 0 20px;
          color: #fff;
        }
      }
    }
  }
}
</style>